<!DOCTYPE html>
<html>
<head>
<meta name="renderer" content="webkit">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MyApi</title>
<css href="__PLUGIN__/bootstrap/css/bootstrap.min.css" />
<css href="__PLUGIN__/validform/Validform_v5.3.2.css" />
<css href="__PLUGIN__/mytips/static/mytips.css" />
<css href="__CSS__/layout.css" />
<block name="style"></block>
<js href="__PLUGIN__/jquery/jquery-3.4.1.min.js" />
<js href="__PLUGIN__/bootstrap/js/bootstrap.min.js" />
<js href="__PLUGIN__/validform/Validform_v5.3.2.js" />
<js href="__PLUGIN__/validform/Validform_Datatype.js" />
<js href="__PLUGIN__/mytips/static/mytips.js" />
</head>
<body>
	<?php
		if((!session("member_id") && request()->controller()!='api.Index') || session("member_id")){
	?>
	<include file="public/header" />
	<?php
		}
	?>
	<section class="container">
		<block name="body"></block>
	</section>
	<div class="powered_by">
		Powered by <a href="https://gitee.com/itcainiaoer/myapi" target="_blank">MyApi</a>
	</div>
	<js href="__JS__/common.js" />
	<block name="js"></block>


	<!-- Modal -->
	<div class="modal fade" id="profile" tabindex="-1" aria-hidden="true">
	  <div class="modal-dialog" role="document">
	    <div class="modal-content">
	      <div class="modal-header">
	        <h5 class="modal-title">个人资料编辑</h5>
	        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
	          <span aria-hidden="true">&times;</span>
	        </button>
	      </div>
	      <form action="<?=url('Account/profile')?>" class="js_form" method="post">
	      	<div class="modal-body">
                <div class="form-group">
                    <input type="text" name="account" class="form-control" placeholder="请输入您的姓名" datatype="*" nullmsg="请输入您的姓名" value="<?=$member_info['nickname']?>" />
                    <div class="icon icon_user"></div>
                </div>
                <div class="form-group">
                    <input type="text" disabled="disabled" class="form-control" value="<?=$member_info['mobile']?>" />
                    <div class="icon icon_mobile"></div>
                </div>
                <div class="form-group">
                    <input type="password" name="password" class="form-control" placeholder="请设置新密码" datatype="*6-18" ignore="ignore" errormsg="新密码" />
                    <div class="icon icon_lock"></div>
                </div>
                <div class="form-group">
                    <input type="password" name="password_confirm" class="form-control" placeholder="请再次输入新密码确认" datatype="*6-18" ignore="ignore" nullmsg="请再次输入新密码" />
                    <div class="icon icon_lock"></div>
                </div>
	      	</div>
			<div class="modal-footer">
            	<div class="validTips" style="flex:1"><span class="js_tipContent">&nbsp;</span></div>
				<button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
				<button type="submit" class="btn btn-primary">确认修改</button>
			</div>
	      </form>
	    </div>
	  </div>
	</div>
</body>
</html>